package com.fishery.memo.util;


import java.sql.Time;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author run
 * @since 2021/2/5 21:00
 */
public class DateFormat {

    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy年MM月dd日 ");
    private static final SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("ahh:mm:ss");


    public static String format(Time time){
        return DATE_FORMAT.format(new Date()) + TIME_FORMAT.format(time);
    }
}
